package com.big.tree.service.impl;

import com.big.tree.dao.UserDao;
import com.big.tree.entity.User;
import com.big.tree.service.UserMigrateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/***********************************************************************
 * 版权所有(C) 纯米科技(上海)股份有限公司 2014-2023
 * Copyright 2014-2023 CHUNMI TECHNOLOGY CO..
 * <p/>
 * This software is the confidential and proprietary information of
 * CHUNMI Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with CHUNMI.
 **********************************************************************
 * @author cm601*/
@Service
public class UserMigrateServiceImpl implements UserMigrateService {

    @Autowired
    private UserDao userDao;

    @Override
    public void migrate() {
        User user = userDao.getById(1L);
        userDao.saveUser(user);
    }
}
